@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 125, 249, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 125, 249, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 125, 249, 0); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.font-geist-mono {
    font-family: monospace;
}

*:focus-visible {
    outline: 2px solid #3b7df9;
    outline-offset: 2px;
}

/* Timeline Styles */
.timeline-container {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3b7df9 0%, #3b7df9 50%, #10d161 100%);
    z-index: 10;
}

.timeline-item {
    margin-bottom: 2rem;
    padding-left: 4rem;
    position: relative;
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
}

.timeline-dot {
    position: absolute;
    left: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #3b7df9;
    z-index: 20;
    border: 2px solid #0d0d0d;
    animation: pulse 2s infinite;
}

.timeline-card {
    border: 1px solid #323232;
    background-color: rgba(40, 40, 40, 0.5);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #3b7df9, #10d161);
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: #3b7df9;
    box-shadow: 0 8px 30px rgba(59, 125, 249, 0.15);
}

/* Button Styles */
.skill-filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid #323232;
    background-color: transparent;
    color: #d1d1d1;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.skill-filter-btn:hover {
    border-color: #3b7df9;
    color: white;
}

.skill-filter-btn.active {
    background-color: #3b7df9;
    border-color: #3b7df9;
    color: white;
}

/* Popup Animation */
@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.popup-content {
    animation: popIn 0.3s ease forwards;
}

/* Card Flip Animation */
.flip-card {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.flip-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card-front, .flip-card-back {
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Shimmer effect for loading */
.shimmer {
    background: linear-gradient(90deg, 
        rgba(50, 50, 50, 0.1) 0%, 
        rgba(50, 50, 50, 0.2) 20%, 
        rgba(50, 50, 50, 0.1) 40%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Mobile menu styles */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.show {
    max-height: 300px;
}

/* Contact floating button animation */
#contact-toggle {
    animation: pulse 2s infinite;
}

/* Chatbot message styles */
.bot-message, .user-message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    animation: fadeIn 0.3s ease forwards;
}

.bot-message {
    background-color: #1f3baa;
    border-top-left-radius: 0;
    align-self: flex-start;
}

.user-message {
    background-color: #323232;
    border-top-right-radius: 0;
    align-self: flex-end;
}

/* Skill card styles */
.skill-card, .project-card, .education-card, .certification-card, .course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover, .project-card:hover, .education-card:hover, .certification-card:hover, .course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Progress bar animation */
.progress-bar {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #3b7df9, #10d161);
    width: 0;
    animation: progress 1s ease forwards;
}

.skill-level {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.skill-level-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #323232;
}

.skill-level-dot.active {
    background: linear-gradient(to right, #3b7df9, #10d161);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
    
    .timeline-dot {
        left: 14px;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f1f1f;
}

::-webkit-scrollbar-thumb {
    background: #3b3b3b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b4b4b;
}
